//
//  TitleButton.swift
//  CBWWeiBo
//
//  Created by 陈博文 on 16/1/8.
//  Copyright © 2016年 陈博文. All rights reserved.
//

import UIKit

class TitleButton: UIButton {

    override func layoutSubviews() {
        super.layoutSubviews()
        titleLabel?.frame.origin.x = 0
        imageView?.frame.origin.x  = (titleLabel?.frame.size.width)! + 5
        //这个5是用来空文字和图片之间间距的
    }

}
